package com.dstation.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dstation.domain.DynamicInfo;
import com.dstation.domain.DynamicReviewLogInfo;
import com.dstation.domain.VideoInfo;
import org.apache.ibatis.annotations.Param;

public interface DynamicReviewLogInfoMapper {

    IPage<DynamicInfo> selectAllNotAccessDynamicInfo(
            @Param("videoInfoPage") Page<VideoInfo> videoInfoPage);

    boolean alterDynamicStatusByVideoId(@Param("dynamicId") long dynamicId,
                                        @Param("isPass") boolean isPass);

    boolean insertDynamicReviewLogInfo(@Param("dynamicReviewLogInfo") DynamicReviewLogInfo dynamicReviewLogInfo);

    DynamicInfo selectDynamicInfoByDynamicID(@Param("dynamicId") long dynamicId);
}